package com.molyfun.parents.rest.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.molyfun.parents.rest.BaseListResponse;

/**
 * Created by william(liuchao.hit@gmail.com).
 * 个人中心积分任务
 */

public class MainActivityListResponse extends BaseListResponse<MainActivityListResponse.MainActivityBean>{

    public static class MainActivityBean implements Parcelable {
        /**
         * id : 402883025d9dae77015d9db69abb0010
         * name : 123
         * expiredatetime : 1501546374000
         * activityurl : http://media.molyfun.com/helloimg/activityurl/20170802/20170802160431qHLZqI49.jpg
         * url : http://media.molyfun.com/helloimg/activitylogo/20170802/20170802160424vgZwKxyU.jpg
         */

        private String id;
        private String name;
        private long expiredatetime;
        private String activityurl;
        private String url;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public long getExpiredatetime() {
            return expiredatetime;
        }

        public void setExpiredatetime(long expiredatetime) {
            this.expiredatetime = expiredatetime;
        }

        public String getActivityurl() {
            return activityurl;
        }

        public void setActivityurl(String activityurl) {
            this.activityurl = activityurl;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.name);
            dest.writeLong(this.expiredatetime);
            dest.writeString(this.activityurl);
            dest.writeString(this.url);
        }

        public MainActivityBean() {
        }

        protected MainActivityBean(Parcel in) {
            this.id = in.readString();
            this.name = in.readString();
            this.expiredatetime = in.readLong();
            this.activityurl = in.readString();
            this.url = in.readString();
        }

        public static final Parcelable.Creator<MainActivityBean> CREATOR = new Parcelable.Creator<MainActivityBean>() {
            @Override
            public MainActivityBean createFromParcel(Parcel source) {
                return new MainActivityBean(source);
            }

            @Override
            public MainActivityBean[] newArray(int size) {
                return new MainActivityBean[size];
            }
        };
    }

}
